/*
 * @Author: lg
 * @Date: 2023-08-31 17:22:42
 * @LastEditors: lg
 * @LastEditTime: 2024-06-12 10:45:21
 * @Description:
 * @FilePath: \ssii-user-bk\src\directives\index.ts
 */
import type { App } from 'vue';
import { btnPermission } from './btn-permission';

const directivesArr = [btnPermission];

/**
 * @description: 注册指令
 * @param {App} app
 * @return {*}
 */
export default function (app: App) {
  directivesArr.forEach((item) => {
    app.directive(item.name, item);
  });
}
